package com.yiren.manager.form.messhall;

import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.yiren.core.form.GenericForm;
import com.yiren.manager.form.cost.YrMealsCostRecordForm;
import com.yiren.manager.utils.CustomJsonDateDeserializer;

public class YrMealForm extends GenericForm{

	private static final long serialVersionUID = 4187368510165778508L;

	private String mealsId;

	private String createId;

 	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")  
	private Date createTime;

	private String mealsName;

	private Float price;

	private String remark;

	private String type;

	private String updateId;

 	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")  
	private Date updateTime;
 	
 	private List<YrMealsCostRecordForm> mealsCostRecordForms;
 	
	public List<YrMealsCostRecordForm> getMealsCostRecordForms() {
		return mealsCostRecordForms;
	}

	public void setMealsCostRecordForms(List<YrMealsCostRecordForm> mealsCostRecordForms) {
		this.mealsCostRecordForms = mealsCostRecordForms;
	}

	public String getMealsId() {
		return mealsId;
	}

	public void setMealsId(String mealsId) {
		this.mealsId = mealsId;
	}

	public String getCreateId() {
		return createId;
	}

	public void setCreateId(String createId) {
		this.createId = createId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	@JsonDeserialize(using=CustomJsonDateDeserializer.class)
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getMealsName() {
		return mealsName;
	}

	public void setMealsName(String mealsName) {
		this.mealsName = mealsName;
	}

	public Float getPrice() {
		return price;
	}

	public void setPrice(Float price) {
		this.price = price;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getUpdateId() {
		return updateId;
	}

	public void setUpdateId(String updateId) {
		this.updateId = updateId;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	@JsonDeserialize(using=CustomJsonDateDeserializer.class)
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
}
